/**
 * Enhanced object literals
 */
var name = 'why'
var age = 18

var obj = {
  name: name,
  age: age
}

var obj1 = {
  //属性简写 property shorthand
  name,
  age,
  
  foo: function () {
  },
  //method简写 method shorthand
  foo1() {
  },
  
  //计算属性名 computed property names
  [name + '__']: 'hehehe'
}

console.log(obj1)
